﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Biz/MiniTop.Master" AutoEventWireup="true" CodeBehind="Calendar.aspx.cs" Inherits="Cn.Cellula.MiniTopSite.Biz.Calendar" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="Biz/theme/default/style/calendar.css" />
<script type="text/javascript">
    var jddlUser = new JskitRichDropDownList("jddlUser");
    jddlUser.setSelectAction("onUserChanged");
    jddlUser.setEmptySelectText("--自己--");
    function onUserChanged(rKey, rValue) {
        if (rKey == null || rKey == '') {
            jBiz.setUser(gCurrentOperatorId);
        } else {
            jBiz.setUser(rKey);
        }
        jBiz.showCalendar();
    }
    jDateSelector.setMode("m");
    function onDateChanged(rDtStr) {
        var _dt = jskitUtil.date.parse(rDtStr+"-1");
        if (_dt != null) {
            jBiz.updateDatetime(rDtStr + "-1");
            jBiz.showCalendar();
        }
    }
    function PageOnLoad() {
        jddlUser.deploy("txt_user", "hid_user", "Ws/_User.aspx?mode=low");
        jBiz.setUser(gCurrentOperatorId);
        jBiz.setDatePanel("date_panel");
        jBiz.deploy("calendar");
        jBiz.init4Calendar();
        jBiz.showCalendar();
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_Body" runat="server">
<div class="list">
    <div class="interval"></div>
<div class="user_select_bar">
    <asp:PlaceHolder runat="server" ID="ph_manage">
    <table>
        <tr>
            <td>查看：</td>
            <td>
                <input type="text" id="txt_User" style="width:220px" />
                <input type="hidden" id="hid_User" />
            </td>
        </tr>
    </table>
    </asp:PlaceHolder>
</div>
    <div id="calendar" class="calendar_box"></div> 
    <div id="calendarInfo" class="calendar_info"></div>
</div>
</asp:Content>